//
//  DVPhotoCell.h
//  ImagePicker
//
//  Created by csh on 16/4/13.
//  Copyright © 2016年 com.read. All rights reserved.
//
#import "DVAssetModel.h"
#import "DVImagePickerManager.h"
#import <UIKit/UIKit.h>

@interface DVSelectButton : UIButton
- (CGRect)imageRectForContentRect:(CGRect)contentRect;
@end


@protocol DVPhotoCellDelegate <NSObject>
@optional
- (void)didSelectImageWithModel:(DVAssetModel *)model select:(BOOL)select;
@end

@interface DVPhotoCell : UICollectionViewCell
@property (nonatomic,strong)DVSelectButton  *selectButton;
@property (nonatomic,strong)DVAssetModel *model;
@property (nonatomic,strong)id<DVPhotoCellDelegate>delegate;
- (void)selectButtonClick:(DVSelectButton *)button;
- (void)setModel:(DVAssetModel *)model;
- (void)compareWithAsset:(NSArray *)assets;
@end
